package com.lrs.java.j2se_self.net;
import java.io.*;
import java.net.*;
public class Testclient {
	public static void main(String[] args){
		try{
			Socket s = new Socket("127.0.0.1",6666);
			DataInputStream dis = new DataInputStream(s.getInputStream());
			System.out.println(dis.readUTF());
			dis.close();
			s.close();
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}
